/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-04-29
 * Time: 12:43
 */
public class GetMax {
    public static int max3(int x, int y, int z) {
        max2(2,3);
        /*if (x > y) {
            return x;
        }else if (x < z){
            return z;
        }else if (y > z) {
            return y;
        }else {
            return z;
        }*/
        return x>y ? x : x>z ? x : z;

    }
    public static int max2(int x, int y) {
        if (x > y) {
            return x;
        }else {
            return y;
        }
    }
    public static void main(String[] args) {
        int ret3 = max3(8,9,4);
        System.out.println(ret3);
        System.out.println(max2(2,3));


    }
}
